<template>
    
    
    <div class="info">    
        <h1>{{name}}</h1>
        <p>router 传入的值是: {{$route.name}}</p>
       <router-view/>
    </div>


</template>
<script>
export default {
    name:"lyy",
    data(){
        return{
            name:"Hi, my name is liyy!!"
        }
    }
}
</script>
<style scoped>
    .info{
        color:red;
    }
    a{
        color:blueviolet;
    }
</style>
